package com.group.eams.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group.eams.pojo.dto.*;
import com.group.eams.pojo.entity.AssetAllocate;
import com.group.eams.pojo.entity.AssetDispose;
import com.group.eams.pojo.vo.*;

/**
* @author 恩哲欣
* @description 针对表【asset_dispose(资产处置表)】的数据库操作Service
* @createDate 2024-10-29 16:09:34
*/
public interface AssetDisposeService extends IService<AssetDispose> {
    Page<AssetDisposeListVo> findAssetDisposeByWhere(AssetDisposeQueryDto assetDisposeQueryDto);
    // 查询固有资产
    Page<DisposeFixedListVo> findDisposeFixedByWhere(FixedAssetQueryDto fixedAssetQueryDto);

    // 根据选择的id查询资产
    Page<DisposeFixedDetailListVo> addDisposeFixedDetail(AssetPartDto assetPartDto);
    // 根据查询到的asset_id查询资产列表
    Page<DisposeFixedDetailListVo> findDisposeFixedDetail(ApplyNumFixedAssetQueryDto applyNumFixedAssetQueryDto);

    // 根据申请单号删除
    int deleteByApplicationNum(BatchDeleteIdsDto batchDeleteIdsDto);
    // 根据申请单号和assetIds删除
    int updateByApplicationNum(BatchUpdateIdsDto<AssetDispose> batchUpdateIdsDto);

    // 根据申请单号查询
    AssetDispose findDisposeByNum(String applicationNum);
}
